/* NavBar组件样式 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 60px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #409EFF;
  cursor: pointer;
}

.nav-brand i {
  font-size: 24px;
  margin-right: 8px;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-item {
  text-decoration: none;
  color: #606266;
  font-size: 16px;
  padding: 5px 0;
  position: relative;
}

.nav-toggle {
  font-size: 24px;
  cursor: pointer;
  color: #606266;
}

/* 侧边栏样式 */
.sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #EBEEF5;
  font-size: 16px;
  font-weight: bold;
}

.sidebar-header i {
  cursor: pointer;
  font-size: 20px;
}

.sidebar-content {
  padding: 10px 0;
}

.sidebar-item {
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: #606266;
  border-bottom: 1px solid #F2F6FC;
  cursor: pointer;
}

.sidebar-item i {
  margin-right: 10px;
  font-size: 18px;
}

.sidebar-item.active {
  color: #409EFF;
  background-color: #ECF5FF;
}

/* 针对移动端的调整 */
.is-mobile {
  padding: 0 15px;
  height: 50px;
}

.is-mobile .brand-text {
  display: block;  /* 确保在移动端显示文字 */
  font-size: 16px;
}

@media (max-width: 767px) {
  .brand-text {
    font-size: 16px;
  }
} 